import java.util.List;

public class Band extends AbstractProfileBand{
	private int year;
	
	public Band(String nick, Style style, int year) {
		super(nick, style);
		this.year = year;
	}

	public void removeMember(Profile profile) {
		super.removeProfile(profile);
	}

	public void addMember(Profile profile) {
		super.addProfile(profile);
	}
	
	public List<Profile> getMembers() {
		return super.getProfiles();
	}

	public int getYear() {
		return year;
	}
	
	@Override
	public boolean match(Profile profile) {
		if (!super.match(profile))
			return false;
		if (year != profile.getBand().getYear())
			return false;
		return true;
	}
	
}
